package structure.arraylist;

public class TestArrayList {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        arrayList.print();
        System.out.println("************************");
        arrayList.del(3);
        arrayList.print();
        System.out.println("************************");
        System.out.println(arrayList.get(2));
        System.out.println(arrayList.indexOf(2));

        System.out.println(arrayList.size());

        System.out.println(arrayList.contains(4));
        System.out.println(arrayList.contains(2));

        System.out.println(arrayList.isFull());
        arrayList.update(1,5);
        arrayList.print();
        arrayList.clear();
        arrayList.print();


    }
}
